scoreboard players tag @s add 开箱范围检测
function chestNEW:搜索/搜索中main if @p[r=5]
scoreboard players add @s[score_箱子刷新_min=-17] 箱子刷新 1
function chestNEW:搜索/超范围 if @s[tag=开箱范围检测,score_箱子刷新=-18]
function chestNEW:搜索/箱子爆炸 if @s[score_箱子刷新=-10,score_箱子刷新_min=-10]